package at.mri.dogwatch.shared.services;

import java.util.List;

import at.mri.dogwatch.server.model.dao.VideoDao;
import at.mri.dogwatch.server.service.DaoServiceLocator;
import at.mri.dogwatch.shared.proxy.VideoProxy;

import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.RequestFactory;
import com.google.web.bindery.requestfactory.shared.Service;

public interface VideoRequestFactory extends RequestFactory {

	@Service(value = VideoDao.class, locator = DaoServiceLocator.class)
	interface VideoRequestContext extends RequestContext {
		Request<List<VideoProxy>> listLastModified(int count);

		Request<Void> save(VideoProxy video);
		
		Request<VideoProxy> get(Long id);
	}

	VideoRequestContext videoRequest();

}
